package com.leoman.dao;

import com.leoman.entity.RecordInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

/**
 * RecordInfoDao
 * Created by 涂奕恒 on 2016/10/31 0031 下午 12:01.
 */
public interface RecordInfoDao extends JpaRepository<RecordInfo, Integer>, JpaSpecificationExecutor<RecordInfo> {

    @Query("select a from RecordInfo a where a.recordDate = ?1")
    RecordInfo findOneByRecordDate(String recordDate);
}